import 'package:flutter/material.dart';
import 'package:senkoo_platform/Utils/base_standard.dart';
import 'package:senkoo_platform/Utils/hex_color_utils.dart';

//字体标准
class Dimens {
  static const double gapdp5 = 5;
  static const double gapdp10 = 10;
  static const double gapdp12 = 12;

  static const double gapdp15 = 15;
  static const double gapdp16 = 16;
  static const double gapdp20 = 20;
  static const double gapdp25 = 25;
  static const double gapdp50 = 50;
}

/// 间隔标准
class Gaps {
  /// 水平间隔
  static const Widget hGap4 = SizedBox(width: 4.0);
  static const Widget hGap5 = SizedBox(width: Dimens.gapdp5);
  static const Widget hGap8 = SizedBox(width: 8.0);
  static const Widget hGap10 = SizedBox(width: Dimens.gapdp10);
  static const Widget hGap12 = SizedBox(width: 12.0);
  static const Widget hGap15 = SizedBox(width: Dimens.gapdp15);
  static const Widget hGap16 = SizedBox(width: Dimens.gapdp16);

  /// 垂直间隔
  static const Widget vGap4 = SizedBox(height: 4.0);
  static const Widget vGap5 = SizedBox(height: Dimens.gapdp5);
  static const Widget vGap8 = SizedBox(height: 8.0);
  static const Widget vGap10 = SizedBox(height: Dimens.gapdp10);
  static const Widget vGap12 = SizedBox(height: 12.0);
  static const Widget vGap15 = SizedBox(height: Dimens.gapdp15);
  static const Widget vGap16 = SizedBox(height: Dimens.gapdp16);
  static const Widget vGap20 = SizedBox(height: 20.0);
  static const Widget vGap23 = SizedBox(height: 23.0);
  static const Widget vGap25 = SizedBox(height: 25.0);
  static const Widget vGap50 = SizedBox(height: Dimens.gapdp50);

  static const Widget empty = SizedBox();

  static Widget line = SizedBox(
    height: 1,
    width: double.infinity,
    child: DecoratedBox(decoration: BoxDecoration(color: HexColor('#F2F2F2'))),
  );

  static Widget blackLine = SizedBox(
    height: 1,
    width: double.infinity,
    child:
        DecoratedBox(decoration: BoxDecoration(color: Standard.color00000015)),
  );
}
